package routes

import (
	"github.com/gin-gonic/gin"
	"goORMTest/goJdbcTest/apis"
)

func InitRouter() *gin.Engine {

	router := gin.Default()
	router.GET("/", apis.IndexApi)
	router.POST("/person", apis.AddPersonApi)
	router.GET("/getPerson", apis.GetPersonApi)
	//router.GET("/person/:id", GetPersonApi)
	//router.PUT("/person/:id", ModPersonApi)
	//router.DELETE("/person/:id", DelPersonApi)
	return router
}
